package com.cn.medicalcare.mapper;

import com.cn.medicalcare.pojo.Admin;
import com.cn.medicalcare.pojo.AllPage;

import java.util.List;

public interface AdminMapper {

    Admin selectAdminByName(String username);

    boolean insertAdmin(Admin admin);

    boolean updateAdminPassword(Admin admin);

    boolean updateAdmin(Admin admin);

    List<Admin> selectAdminInPage(AllPage<Admin> allPage);

    int selectAdminCount(Admin admin);
}
